using System;
using System.Collections.Generic;
using System.Text;

namespace DiceRoller.Util {
  public static class Misc {

    public static int countElements(object[] list, object element) {
      int count = 0;
      for(int i = 0; i < list.Length; i++) {
        count += list[i].Equals(element) ? 1 : 0;
      }
      return count;
    }
  }
}
